package com.zmn.oms.services.impl.part;

import com.zmn.oms.model.entity.part.OrderPartAddition;
import com.zmn.oms.persistence.interfaces.part.OrderPartAdditionDao;
import com.zmn.oms.services.interfaces.part.OrderPartAdditionService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * 类描述：订单配件附加
 * @author wangxiaokun
 * @since  2022/03/21 14:44
 */
@Service
public class OrderPartAdditionServiceImpl implements OrderPartAdditionService {

    @Resource
    private OrderPartAdditionDao orderPartAdditionDao;

    @Override
    public OrderPartAddition findById(Long orderId, Long workId) {
        return orderPartAdditionDao.findById(orderId, workId);
    }

    @Override
    public void updateByKey(OrderPartAddition orderPartAddition) {
        orderPartAdditionDao.updateByKey(orderPartAddition);
    }

    @Override
    public void insert(OrderPartAddition orderPartAddition) {
        orderPartAdditionDao.insert(orderPartAddition);
    }
}
